package cc.rengu.redp.hawk.service;

import cc.rengu.redp.hawk.domain.TimestampData;
import com.alibaba.fastjson.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * @author xushitang
 */
public interface IndexArithmeticService {

    /**
     * 指标算法执行
     * @param algorithm
     * @param algParams
     * @param currData
     * @param indexesTimestampData
     * @return
     */
    Float run(String algorithm, JSONObject algParams, JSONObject currData, Map<String, List<TimestampData>> indexesTimestampData);

    Map<String, IndexAlgorithm> getAlgorithmList();

    String getAlgorithmParamsSample(String algorithm);
}
